package com.hnkywl.sts.dao.jhgl;

import com.hnkywl.sts.entity.jhgl.Zgwzjhmx;
import net.ruixin.orm.hibernate.SimpleHibernateTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: ZHUCHG
 * Date: 13-4-6
 * Time: 下午5:15
 * To change this template use File | Settings | File Templates.
 */
@Repository
public class ZgwzjhmxDao extends SimpleHibernateTemplate<Zgwzjhmx, Long> {
    public List<Zgwzjhmx> findZgwzjhmxByZgwzjh(Long id) {
        String hql = "from Zgwzjhmx where zgwzjh.id=?";
        return find(hql, id);
    }
}
